﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/Default.Master" CodeBehind="Reset.aspx.vb" Inherits="GuildCMS.Account.Reset" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../CSS/Account/Reset.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    
    <!-- jQuery validate JavaScript. -->
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#form1").validate();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <%-- Panel displaying the registration form to the visitor. --%>
    <asp:Panel ID="panForm" runat="server">
        
        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" Text="Email"></asp:Label></div>
            <div class="formitemelement"><asp:TextBox ID="txtEmail" runat="server" MaxLength="100" CssClass="required email"></asp:TextBox></div>
            <div class="formitemvalidate">
                <asp:CustomValidator ID="valEmail" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="txtEmail"
                    ErrorMessage="There was an error processing this field."
                    OnServerValidate="valEmail_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblCode" AssociatedControlID="txtCode" runat="server" Text="Activation Code: "></asp:Label></div>
            <div class="formitemelement"><asp:TextBox ID="txtCode" runat="server" MaxLength="10" MinLength="10"></asp:TextBox></div>
            <div class="formitemvalidate">
                <asp:CustomValidator ID="valCode" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="txtCode"
                    ErrorMessage="There was an error processing this field."
                    OnServerValidate="valCode_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>
        
        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblPassword1" AssociatedControlID="txtPassword1" runat="server" Text="Password:"></asp:Label></div>
            <div class="formitemelement"><asp:TextBox ID="txtPassword1" runat="server" MaxLength="32" CssClass="required"></asp:TextBox></div>
            <div class="formitemvalidate">
                <asp:CustomValidator ID="valPassword1" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="valPassword1"
                    ErrorMessage="There was an error processing this field."
                    OnServerValidate="valPassword1_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>
        
        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblPassword2" AssociatedControlID="txtPassword2" runat="server" Text="Password:"></asp:Label></div>
            <div class="formitemelement"><asp:TextBox ID="txtPassword2" runat="server" MaxLength="32" CssClass="required"></asp:TextBox></div>
            <div class="formitemvalidate">
                <asp:CustomValidator ID="valPassword2" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="txtPassword2"
                    ErrorMessage="There was an error processing this field."
                    OnServerValidate="valPassword2_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>
        
        <div class="submitholder">
            <div class="submitlabel"></div>
            <div class="submitbutton">
                <asp:Button ID="btnReset" runat="server" Text="Reset Password" />
                <asp:HyperLink ID="lnkRegister" runat="server" NavigateUrl="~/Register.aspx">Register</asp:HyperLink>
            </div>
        </div>
    </asp:Panel>
    
    <%-- Panel displaying the password reset is complete. --%>
    <asp:Panel ID="panComplete" runat="server">
        Your password has been successfully reset.
    </asp:Panel>
    
</asp:Content>
